package com.wxit.algorithm.block;

/**
 * 单锁实现阻塞队列
 * @param <E>
 */
public interface BlockingQueue <E> {

    void offer(E e) throws InterruptedException;

    boolean offer(E e, long timeout) throws InterruptedException;

    E poll() throws InterruptedException;
}
